﻿@namespace MudBlazor.UnitTests.TestComponents

<MudDataGrid Items="@_items" ReadOnly="false" EditMode="@DataGridEditMode.Cell">
    <Columns>
        <PropertyColumn Property="x => x.Name" />
        <PropertyColumn Property="x => x.Age" />
    </Columns>
</MudDataGrid>

@code {
    public IEnumerable<Model> _items = new List<Model>()
    {
        new Model("John", 45), 
        new Model("Johanna", 23), 
        new Model("Steve", null)
    };

    public record Model(string Name, int? Age);
}
